//
//  Global.swift
//  YDOAProduct
//
//  Created by YDWY on 2017/5/17.
//  Copyright © 2017年 Allen. All rights reserved.
//

import UIKit

let ScreenWidth = UIScreen.main.bounds.width
let ScreenHeight = UIScreen.main.bounds.height

//host
//http://oa.xgyuanda.com/api.php/index
//http://101.132.69.250:8081
let HOST = "http://oa.xgyuanda.com/api.php/index"
let HOST1 = "http://101.132.69.250:8081"

//公用变量
let USERINFO = "userinfo"

//接口
let LOGINING  = "\(HOST)/login" //登录接口

//let GET_STAY_APPROVAL = "\(HOST1)/stayApproval" //审批事项栏目
let GET_STAY_APPROVAL = "\(HOST)/count?uid=%@" //审批事项栏目

//首页
let GET_TODAY_LUNCH_LIST = "\(HOST)/todaylunchlist?token=%@&status=%ld"


//固定资产审批 拒绝 通过
let  GET_FIX_PROPERTY = "\(HOST1)/fixedProperty?token=%@&status=%ld" //固定审批事项
let  REFUSE_FIXED_PROPERTY = "\(HOST1)/fixedRefuse"
let  PASS_FIXED_PROPERTY = "\(HOST1)/fixedPass"



//月度需求审批  拒绝  通过
let GET_MONTHLY_DEMAND = "\(HOST)/monthly?uid=%@&type=%ld&page=%ld" //月度需求审批
let REFUSE_MONTHLY_DEMAND = "\(HOST1)/monthlyDemandRefuse"
let PASS_MONTHLY_DEMAND = "\(HOST1)/monthlyDemandPass"



//办公领用需求审批  拒绝  通过
let GET_OFFICE_GOODS = "\(HOST1)/officegoods?token=%@&status=%ld" //月度需求审批
let REFUSE_OFFICE_GOODS = "\(HOST1)/officegoodsRefuse"
let PASS_OFFICE_GOODS = "\(HOST1)/officegoodsPass"


//急性物品审批 管理
let GET_ACUTE_GOODS = "\(HOST1)/acutegoods?token=%@&status=%ld" //急性物品
let REFUSE_ACUTE_GOODS = "\(HOST1)/acutegoodsRefuse"
let PASS_ACUTE_GOODS = "\(HOST1)/acutegoodsPass"

//车辆管理
let GET_SENDER_CRA = "\(HOST1)/sendercar?token=%@&status=%ld" // 车辆管理
let REFUCE_SENDER_CAR = "\(HOST1)/sendercarRefuse"
let PASS_SENDER_CAR = "\(HOST1)/sendercarPass"


//报销管理
let GET_EXPENSE_ACCOUNT = "\(HOST1)/expenseAccount?token=%@&status=%ld" //报销管理
let REFUSE_EXPENSE_ACCOUNT = "\(HOST1)/expenseAccountRefuse"
let PASS_EXPENSE_ACCOUNT = "\(HOST1)/expenseAccountPass"

//公告管理
let GET_ANNOUN_CEMENTS = "\(HOST1)/announcements?token=%@&id=%@"//获取公告列表
let PUSH_ANNOUN_CEMENTS = "\(HOST1)/pushAnnoucements"//发布公告



//勾餐管理
let GET_WORKING_LUNCH_LIST = "\(HOST1)/workinglist?token=%@&id=%@" //获取工作餐列表
let PUSH_WORKING_LUNCH = "\(HOST1)/pushworinglunch" //发布工作餐
let ORDER_LUNCH = "\(HOST1)/order" //勾餐接口


//库存展示
let GET_STOCK_LIST = "\(HOST)/kindex?page=%ld"
let SEARCH_STOCK_LIST = "\(HOST)/ksou?name=%@"
let EDIT_STOCK = "\(HOST)/edit?pid=%@&num=%@&unit=%@"
let DELETE_STOCK = "\(HOST)/del?pid=%@"


//申请管理
let GET_KUCUN_LIST = "\(HOST)/bcalss?type=%@&page=%ld"
//办公申请
let PUSH_BANGONG = "\(HOST)/badd?id=%@&uid=%@&type=0&num=%@"
//月度需求申请
let PUSH_YUEDU = "\(HOST)/badd?id=%@&uid=%@&type=3&num=%@"
//急性申请
let PUSH_ACTUE = "\(HOST)/jadd?uid=%@&wname=%@&xing=%@&com=%@&num=%@&unit=%@&content=%@"




